package com.example.mytayunapi.Service;

import com.example.mytayunapi.Entity.product_listInfo;
import com.example.mytayunapi.Mapper.product_listInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class product_listInfoServiceImpl implements product_listInfoService {

    @Autowired
    private product_listInfoMapper product_listinfoMapper;

    public Integer updateProductList(product_listInfo product_listinfo) {
        return product_listinfoMapper.updateProductList(product_listinfo);
    }

    public Integer deleteProductList(Integer id) {
        return product_listinfoMapper.deleteProductList(id);
    }

    @Override
    public List<product_listInfo> findAll() {
        return product_listinfoMapper.findAll();
    }

    @Override
    public Integer insertProduct_list(product_listInfo product_listinfo) {
        return product_listinfoMapper.insertProduct_list(product_listinfo);
    }

    @Override
    public List<product_listInfo> findAllCategory() {
        return product_listinfoMapper.findAllCategory();
    }

}
